﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModifyCandidate.aspx.cs"
    Inherits="ASPItalia.ModelVirtualCasting.Web.ModifyCandidate" MasterPageFile="~/Views/Shared/Site.Master" %>

<asp:Content runat="server" ID="MainContent" ContentPlaceHolderID="MainContent">
    <form runat="server" id="theForm">
    <asp:MultiView runat="server" ID="mvPage" ActiveViewIndex="0">
        <asp:View runat="server" ID="viewForm">
            <asp:ValidationSummary runat="server" ID="summary" CssClass="error" />
            <div class="editor-label">
                Nome
            </div>
            <div class="editor-field">
                <asp:TextBox runat="server" ID="txtFirstName" />
                <asp:RequiredFieldValidator runat="server" ID="requiredFirstName" 
                    ErrorMessage="Il nome è obbligatorio" Display="Dynamic" Text="*" 
                    ControlToValidate="txtFirstName" CssClass="error" EnableClientScript="false" />
            </div>
            <div class="clear">
            </div>
            <div class="editor-label">
                Cognome
            </div>
            <div class="editor-field">
                <asp:TextBox runat="server" ID="txtLastName" />
            </div>
            <div class="clear">
            </div>
            <div class="editor-label">
                Data di nascita
            </div>
            <div class="editor-field">
                <asp:TextBox runat="server" ID="txtBirthDate" CssClass="dateInput" />
            </div>
            <div class="clear">
            </div>
            <div class="editor-label"></div>
            <div class="editor-field">
                <asp:Button runat="server" ID="btnSave" Text="Salva" OnClick="btnSave_Click" />
            </div>
            <div class="clear"></div>
        </asp:View>
        <asp:View runat="server" ID="viewError">
            <asp:Label runat="server" ID="lblError" CssClass="error" />
        </asp:View>
    </asp:MultiView>
    </form>
</asp:Content>
